<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="shmged.com.shlcm.utils.*"%>
<%@ page import="wt.inf.container.WTContainer"%>
<%@ page import="wt.inf.container.WTContainerRef"%>
<%@ page import="wt.folder.Folder" %>
<%@ page import="wt.folder.FolderHelper" %>
<%@page import="wt.httpgw.URLFactory"%>
<head>
</head>
<%
String baseUrl = new URLFactory().getBaseHREF();
String contName = CmSettings.getSection("DefaultLocation").get("SHMGEDContainer");
%>
<div>
  <h2>规章制度</h2>
</div>
<table id="companyRule_tt"></table>
<script>

$('#companyRule_tt').datagrid({
    //title:'Load Data',
    //iconCls:'icon-save',
    width:285,
    height:250,
    queryParams:{folderName:'/Default/企业文化/规章制度'},
    url:'<%=baseUrl%>shmged/jsp/com/shlcm/documents/jspSearchDocument.jsp',
    columns:[[
        
		{field:'id',title:'id',width:20,hidden:true},
        {field:'name',title:'名称',width:160,  //链接
            formatter:function(value,rowData,rowIndex){
			if(rowData.number!=""){
        		 return "<a href='javaScript:void(0)' onclick=\"javaScript:addTab('','','"+rowData.id+"','"+rowData.name+"')\">"+rowData.name+"</a>";  
			}else{
				  return "<a href='javaScript:void(0)' onclick=\"javaScript:expandTo('"+rowData.name+"')\">"+rowData.name+"</a>";
				}

      }
        },
       // {field:'modifyUser',title:'更新人',width:80,align:'right'},
        {field:'time',title:'更新时间',width:120,align:'right'},
       // {field:'version',title:'版本',width:40}
           
    ]],
    pagination:false
});

</script>